// 导入二次封装好的请求工具
import request from  '@/utils/request.js'
import {stringify} from '@/utils/utils.js'

// 导出并创建获取首页信息的方法

export function GetHomePage(data){
	// 导出request.post 请求的结果（promise的实例）
	// 数据转换为url编码的形式
	return request.post("/v1/home/page",stringify(data),{
		headers:{
			// 添加url编码的请求头
			"Content-Type":"application/x-www-form-urlencoded"
		}
	});
}

export function GetIt(){
	return request.get("/web/api/system_config/all")
}

export function GetA(){
	return request.get("https://ss.absrclub.com/api/diy/get_diy/0")
	
}
export function GetB(){
	return request.get("/navigationconfig/get?wareId=&matchWareHouseFlag=")
	
}
export function GetC(){
	return request.get("/home/index/getHotsRecommendList?city_id=0&version=6.1.81&referer=2")
	
}

export function GetD(){
	return request.get("/v3/index/home.html?pet_type=dog&version=596&is_single=0&isWeb=1&system=wap&distinct_id=183ef296b68349-062ccf0c267ce-4201561c-240120-183ef296b69618&debug_param=")
	
}
export function GetE(){
	return request.get("/gw-m-api/h5/category")
	
}
export function GetF(){
	return request.get("/gw-m-api/v3/h5/home",{
		headers:{
			"x-os":"H5",
			"x-version-name":"1.33.0"
		}
	})
}
export function GetG(){
	return request.get("https://huaqiangjiancai.com/api/common/home")
}
export function GetH(){
	return request.get("/adwap/listAllAdSlide?platform=h5&token=")
}

export function GetI(){
	return request.post("/api/index/getIndexInfo",{},{
		headers:{
			"version":"h5_v1"
		}
	})
}

export function GetJ(){
	return request.get("/api/app/v3/home?timeStamp=1666166855&sign=0646c2aef49d9b2ccc7776f05f6286f0")
}
